#!/bin/bash

fileDir="/lhwl/data/upload/hkzyk.36ve.com/"
fileList=`find ${fileDir} -name *.flv`
   if [ "${fileList}"x = ""x ]; then
     uploadLog
     echo "记录为空"
     exit
   fi
   IFS=$(echo -en "\n\b") #为了处理文件名中的空格、TAB
   allFileSize=0
   for file in `echo "${fileList}"`
     do
       fileSize=$(du -s ${file}|awk -F ' ' '{print $1}')
       echo ${file}
       echo ${allFileSize}+${fileSize}
       allFileSize=$(echo ${allFileSize}+${fileSize}|bc)
     done
   echo    $(echo ${allFileSize}/1024/1024|bc)



   ffmpeg -i aaa.flv -vcodec copy -acodec copy output.mp4